import { TaskBase } from '../TaskBase';

export class TaskDismantle extends TaskBase {
    shouldRun(creep: Creep): boolean {
        return this.target !== undefined && this.target !== null;
    }
    _run(creep: Creep) {
        return this.defaultProcess(creep.dismantle(<Structure>this.target));
    }
}